/* fonts */
@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@300;400;500;600;700;800&family=Rajdhani:wght@300;400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Rubik", sans-serif;
  text-decoration: none;
  transition: 0.3s;
}
*::selection {
  background-color: #ffaa17;
  color: #fff;
}

html {
  scroll-behavior: smooth;
}
.contanier {
  width: 85%;
  margin: auto;
}
.btn {
  padding: 15px 30px;
  color: #1c1e22;
  font-weight: 500;
  background-color: #ffaa17;
  border-radius: 10px;
  border: 1px solid #ffaa17;
  margin: 10px;
}
.btn:hover {
  color: #ffaa17;
  background: #fff;
}

section {
  padding: 90px 0 40px;
}

.sec-top {
  text-align: center;
  margin-bottom: 70px;
}
.sec-top h1 {
  color: #1c1e22;
  font-size: 40px;
}
.sec-top h1 span {
  color: #ffaa17;
}

.boxs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.boxs .box {
  width: 30%;
}
/* start Header */
header nav .nav-links .nav-link {
  color: #000;       /* same white as links */
  margin-left: 50px;    /* same spacing as links */
}
header nav .nav-links .nav-link:hover {
  color: #ffaa17;       /* orange on hover, same as links */
  cursor: pointer;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 1000;
}
header.active {
  background-color: #bdc6d7;
  border-bottom: 1px solid #8888884a;
}
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
header nav .nav-links a {
  color: #000;
  margin-left: 50px;
}
header nav .nav-links a:hover,
header nav .nav-links a.active {
  color: #c47e05;
}

#btn-menu {
  display: none;
}
select {
  background: #bdc6d7; /* نحيد الخلفية */
  border: none; /* نحيد البوردر */
  color: white; /* النص يبان فوق الخلفية الغامقة */
  font-size: 16px;
  padding: 5px;
  cursor: pointer;
}
select:hover {
  color: #ffaa17;
}

.hero {
  padding-top: 80px;
  background: url(img/hero-bg.png);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .contanier {
  display: flex;
  align-items: center;
  justify-content: space-around;
 
}
.hero .content h4 {
  color: #ffaa17;
  font-size: 30px;
}
.hero .content h1 {
  color: #000;
  font-size: 65px;
  margin: 20px 0 10px;
}
.hero .content p {
  width: 73%;
  color: #000;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 70px;
}
.hero .content .btn {
  font-size: 18px;
}
.hero .hero-img img {
  width: 400px;
  border-radius: 2%;
  margin-right: 100px;
  margin-left: 100px;
}

.content p {
  text-align: left;
  direction: ltr;
  line-height: 1.6; /* مسافة بين الأسطر باش يكون مقروء */
  margin-bottom: 20px;
  max-height: 80px; /* النص يبان قصير فالأول */
  overflow: hidden; /* يخبي الزائد */
  transition: max-height 0.6s ease;
}
.animated-paragraph {
  max-height: 1000px; /* يظهر النص كامل */
  opacity: 0; /* البداية مخفية */
  transform: translateY(20px); /* تبدأ من الأسفل */
  animation: fadeSlide 1.2s forwards; /* مدة 1.2 ثانية */
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.content p.show {
  max-height: 1000px; /* ملي نضغط يبان النص كامل */
}

/* start about */

.about {
  padding: 90px 0 50px;
}
.about .contanier {
  display: flex;
  justify-content: center;
}
.about .about-img img {
  width: 450px;
  border-radius: 10px;
}
.about .content {
  margin-left: 30px;
}
.about .content h1 {
  color: #1c1e22;
  font-size: 45px;
}
.about .content h1 span {
  color: #ffaa17;
}
.about .content h3 {
  color: #1c1e22;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 40px;
}
.about .content p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 70px;
}

/* start Services */

.services {
  background-color: #f0f4f9;
  text-align: center;
}
.services .boxs .box {
  background-color: #fff;
  padding: 20px 20px;
  border-radius: 10px;
  box-shadow: 0px 5px 20px 0px rgba(128, 112, 22, 0.2);
  position: relative;
  top: 0;
  width: 100%;
  margin-bottom: 25px;
}
.services .boxs .box:hover {
  top: -15px;
}
.services .boxs .box i {
  color: #ffaa17;
  font-size: 50px;
  margin-bottom: 20px;
}
.services .boxs .box h3 {
  color: #1c1e22;
  font-size: 24px;
  margin-bottom: 20px;
}
.services .boxs .box p {
  color: #444;
  margin-bottom: 25px;
}
.pub-h1 {
  margin-bottom: 30px;
}

/* start Contact */

.contact {
  background: #f0f4f9;
  min-height: 100vh;   /* allows the section to grow if content is taller */
}
.contact form {
  width: 60%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact form input {
  width: 90%;
  font-size: 18px;
  padding: 15px 10px;
  outline: none;
  border: 1px solid rgba(128, 112, 22, 0.3);
  margin-bottom: 20px;
  border-radius: 10px;
}
.contact form textarea {
  border: 1px solid rgba(128, 112, 22, 0.3);
  outline: none;
  border-radius: 10px;
  width: 100%;
  padding: 10px;
}
.contact form textarea:focus,
.contact form input:focus {
  border-color: #ffaa17;
}
.contact form button {
  margin: 40px auto 0;
  cursor: pointer;
}

/* Simple Footer */
footer {
  background-color: #c5c5c5;
  color: #fff;
  padding: 25px 0;
  text-align: center;
  border-top: 1px solid #a5630d;
}

footer p {
  font-size: 14px;
  color: #1b1818;
}

footer p span {
  color: #6e4704;
  font-weight: 600;
}

/* Media */

@media (max-width: 1200px) {
  .contanier {
    width: 90%;
  }
  .hero .content h1 {
    font-size: 50px;
  }
  .hero .content p {
    font-size: 15px;
  }
  .hero .hero-img img {
    width: 380px;
  }
  .hero {
    padding-bottom: 40px;
  }
  .about .content h3 {
    font-size: 20px;
  }
  .about .content p {
    margin-bottom: 50px;
  }
  .about .about-img img {
    width: 380px;
  }
  .services .boxs .box h3 {
    font-size: 22px;
  }
  .contact form {
    width: 70%;
  }
}


@media (min-width: 671px) and (max-width: 780px){
  .btns{
    justify-content: center;
    align-items: center;
    flex-direction: column;  /* keeps them stacked */
    text-align: center;
  }
  .btns .btn{
    width: 70%;              /* looks balanced; adjust if needed */
    margin: 6px auto;
  }
}
@media (max-width: 670px) {
  .hero .content h1 {
    font-size: 40px;
  }
  .hero .hero-img img {
    width: 320px;
  }
  .boxs {
    justify-content: center;
  }
  .boxs .box {
    width: 70%;
  }
  .contact form {
    width: 90%;
  }
  .btns {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  .btns .btn {
    width: 50%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 10px;
  }
}
@media (max-width: 500px) {
  .hero .hero-img img {
    width: 280px;
  }
  .contact form {
    width: 90%;
    justify-content: center;
  }
  .contact form input {
    width: 100%;
  }
  .btns .btn {
    font-weight: 10px;
  }
}



/* Dropdown menu styling */
/* Submenu container with shadow around the whole box */
.nav-item.has-submenu .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
 
  border-radius: 6px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  display: none;
  border-radius: 16px;
  background: rgba(143, 118, 206, 0.95);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  z-index: 1000;
/*
  .nav-item.has-submenu .submenu{
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 240px;
  padding: 10px;
  margin: 10px 0 0;
  list-style: none;
  display: none;                  
  border-radius: 16px;
  background: rgba(10, 54, 49, 0.95);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  z-index: 1000;
}
*/
}

/* Show submenu on hover */
.nav-item.has-submenu:hover .submenu {
  display: block;
}
.nav-item.has-submenu .submenu::before{
  content: "Explore";
  display: block;
  font-size: 12px;
  letter-spacing: .2px;
  opacity: .7;
  color: #bfe7de;
  padding: 6px 10px 8px;
}

/* Submenu links */
.nav-item.has-submenu .submenu a{
  display: block;
  padding: 10px 12px;
  margin: 4px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  transition: background .2s, color .2s;
}


/* Hover effect just changes background of that row */
.nav-item.has-submenu .submenu a:hover {
  background: #f4f6f8;
  color: #ffaa17;
}
/* Make submenu row highlight full-width */
.nav-item.has-submenu .submenu a {
  display: block;
  width: 100%;
  padding: 12px 18px;
  margin: 0 !important;     /* override the 50px left margin from top nav */
  color: #ffffff;
  text-decoration: none;
  box-sizing: border-box;
}

.nav-item.has-submenu .submenu li { margin: 0; }  /* remove any li spacing */



/* end of the mobile view */
/* DESKTOP ONLY: keep all top-level items on one line */
@media (min-width: 901px) {
  header nav .nav-links{
    display: flex;
    align-items: center;
    gap: 50px;            /* spacing between items */
    white-space: nowrap;  /* prevent wrapping */
    overflow: visible;    /* allow dropdown to overflow */
  }

  /* cancel the old per-link left margin (we use gap instead) */
  header nav .nav-links a { margin-left: 0; }

  /* make "Other" behave like the links */
  header nav .nav-links .nav-item.has-submenu{
    display: inline-flex;
    align-items: center;
  }
}
/* DESKTOP: keep items inline and anchor the submenu under "Other" */
@media (min-width: 901px) {
  /* one row, tidy spacing */
  header nav .nav-links {
    display: flex;
    align-items: center;
    gap: 36px;                 /* adjust to taste (was too wide) */
    white-space: nowrap;
    overflow: visible;
  }
  /* remove legacy left margins on links */
  header nav .nav-links a { margin-left: 0 !important; }

  /* make "Other" match spacing & act as the positioning context */
  .nav-item.has-submenu {
    position: relative;        /* << key: submenu will position to this */
    display: inline-flex;
    align-items: center;
    margin-left: 0 !important; /* kill any leftover 50px */
  }
  .nav-item.has-submenu > .nav-link { margin-left: 0 !important; }

  /* dropdown placement: directly under "Other", left-aligned */
  .nav-item.has-submenu .submenu {
    position: absolute;
    top: 100% ;    /* small gap under the bar */
    left: -20px;                   /* anchor to left edge of "Other" */
    right: auto;               /* ensure it doesn't snap to the far right */
    transform: none;           /* in case any transform was set elsewhere */
    min-width: 220px;
    z-index: 1000;
  }
}

/* Logo Tim wharton and the dot CSS */ 
.tw-logo {
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;      /* text colour */
  text-decoration: none;
}

.tw-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffaa17; /* orange dot */
  display: inline-block;
  margin-right: 10px;
}

.tw-brand {
  color: #000;      /* keep the text white */
}



  /* ===== News page only (scoped by #news-page) ===== */
  #news-page .news-shell{
    display: grid;
    grid-template-columns: minmax(280px, 38%) 1fr;
    gap: 40px;
    align-items: start;
  }

  /* Make the left image “fixed” via sticky so the right side scrolls */
  #news-page .news-photo{
    position: sticky;
    top: 100px; /* header is 80px; give a little breathing room */
    height: calc(100vh - 120px);
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
  }
  #news-page .news-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;    /* fills nicely on all screens */
    filter: grayscale(100%); /* ensure black & white */
    display: block;
  }

  /* Right column: full width boxes, vertical stack */
  #news-page .news-feed .boxs{ display: block; }
  #news-page .news-feed .boxs .box{ width: 100%; }

  /* Tighter paragraph measure for readability on the right column */
  #news-page .news-feed .box p{
    line-height: 1.7;
    font-size: 16px;
  }

  /* ========== Mobile drawer (≤780px) ========== */
@media (max-width: 780px){
  /* Show burger icon */
  #btn-menu{
    display:block;
    font-size: 32px;
    color:#000;
    cursor:pointer;
  }

  /* Header: keep bar visible */
  header nav {
    position: relative;
    z-index: 3000;
  }

  /* Drawer itself */
  header nav .nav-links{
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(78vw, 360px);
    background: #bdc6d7;            /* your header colour */
    box-shadow: -8px 0 28px rgba(0,0,0,.22);
    transform: translateX(100%);
    transition: transform .28s ease;
    display: flex;
    flex-direction: column;
    padding-top: 80px;               /* room for header height */
    overflow-y: auto;
  }
  header nav .nav-links.show{
    transform: translateX(0);
  }

  /* Nav items inside drawer */
  header nav .nav-links a,
  header nav .nav-links .nav-link{
    display:block;
    width: 100%;
    padding: 16px 20px;
    margin: 0 !important;
    color: #fff;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  header nav .nav-links a.active,
  header nav .nav-links a:hover{
    background:#ffaa17;              /* your accent */
    color:#1c1e22;
  }

  /* “Other” becomes an accordion trigger */
  .nav-item.has-submenu{
    position: static;
    width: 100%;
  }
  .nav-item.has-submenu > .nav-link{
    display:flex; align-items:center; justify-content:space-between;
    padding: 16px 20px;
    color:#fff;
  }
  .nav-item.has-submenu > .nav-link::after{
    content: "▾";
    font-size: 14px;
    opacity:.85;
    transition: transform .2s ease;
  }
  .nav-item.has-submenu.open > .nav-link::after{
    transform: rotate(180deg);
  }

  /* Submenu panel */
  .nav-item.has-submenu .submenu{
    position: static;
    display: none;
    background: rgba(0,0,0,.06);
    padding: 6px 0;
    box-shadow: none;
    border-radius: 0;
  }
  .nav-item.has-submenu.open .submenu{ display:block; }
  .nav-item.has-submenu .submenu a{
    padding: 12px 22px;
    font-size: 16px;
    color: #fff;
    border: 0;
  }
  .nav-item.has-submenu .submenu a:hover{
    background:#f4f6f8; color:#ffaa17;
  }

  /* Dim background overlay */
  .mobile-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 2500;
  }
  .mobile-overlay.show{
    opacity: 1; visibility: visible;
  }
}

/* Ensure the drawer sits ABOVE the overlay, and overlay doesn't catch clicks when hidden */
@media (max-width: 780px){
  header nav { position: relative; z-index: 4000; }               /* header above overlay */
  header nav .nav-links{ position: fixed; z-index: 4100; }        /* drawer above overlay */

  .mobile-overlay{ 
    z-index: 3000;                     /* below the drawer */
    pointer-events: none;              /* don't block clicks when hidden */
  }
  .mobile-overlay.show{
    pointer-events: auto;              /* clickable only when visible */
  }
}



/* Compact desktop nav between 781–900px so everything fits on one line */
@media (min-width: 781px) and (max-width: 900px){
  header nav .nav-links{
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
    overflow: visible;
    position: static;
    width: auto;
  }
  header nav .nav-links a,
  header nav .nav-links .nav-link{
    margin-left: 0 !important;
    font-size: 16px;
    padding: 0;
  }
  .nav-item.has-submenu{
    position: relative;
    display: inline-flex;
    align-items: center;
  }
  .nav-item.has-submenu .submenu{
    position: absolute;
    top: 100%;
    left: -12px;
    min-width: 200px;
  }
  #btn-menu{ display: none; }
}

/* Home hero: smaller image, no side margins, add space between columns */
.hero .contanier{
  gap: 40px;
}
.hero .hero-img img{
  margin: 0 !important;
  width: clamp(240px, 30vw, 380px);
  height: auto;
}

/* Give the content a little more room between 781–900px */
@media (min-width: 781px) and (max-width: 900px){
  .hero .contanier{ gap: 32px; }
  .hero .hero-img img{ width: clamp(220px, 28vw, 340px); }
  .hero .content p{ width: 100%; }
}


/* === Hero buttons: prevent text splitting & tidy wrapping === */
.btn { 
  white-space: nowrap;           /* keep "Read More" / "Contact Me" on one line */
}
.btns {
  display: flex;                 /* lay buttons out cleanly */
  flex-wrap: wrap;               /* allow stack when space is tight */
  gap: 16px;                     /* visual spacing between buttons */
}

/* Ensure columns align from the top to avoid awkward vertical centering */
.hero .contanier{
  align-items: flex-start;
}

/* Mid-width tuning to avoid overlap between image and buttons */
@media (min-width: 901px) and (max-width: 1000px){
  .hero .hero-img img{
    width: clamp(220px, 28vw, 340px);
  }
  .hero .contanier{ gap: 36px; }
  .hero .content{ max-width: 520px; }
}

/* Extra guard for the 903–970px band you flagged */
@media (min-width: 903px) and (max-width: 970px){
  .hero .content{ max-width: 500px; }
  .hero .hero-img img{ width: clamp(220px, 27vw, 330px); }
}
/* === Mobile drawer fixes: z-index & click-through (≤780px) === */
@media (max-width: 780px){
  /* Put header above the overlay */
  header { position: relative; z-index: 10000; }
  header nav { position: relative; z-index: 10001; }

  /* Drawer must be above the overlay */
  header nav .nav-links{
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(78vw, 360px);
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 10002;           /* ← higher than overlay */
    pointer-events: auto;     /* ensure it can receive clicks */
  }
  header nav .nav-links.show{ transform: translateX(0); }

  /* Overlay sits BELOW the drawer */
  .mobile-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
    z-index: 10001;           /* ← lower than nav-links */
    pointer-events: none;     /* when hidden, don't block */
  }
  .mobile-overlay.show{
    opacity: 1; visibility: visible;
    pointer-events: auto;     /* clickable only when visible */
  }

  /* Mobile accordion (unchanged) */
  .nav-item.has-submenu{ position: static; width: 100%; }
  .nav-item.has-submenu .submenu{ position: static; display: none; }
  .nav-item.has-submenu.open .submenu{ display: block; }
}
/* === MOBILE DRAWER — single source of truth (≤780px) === */
@media (max-width: 780px){
  /* Layers: header > drawer > overlay > page */
  header            { position: relative; z-index: 10000; }
  header nav        { position: relative; z-index: 10001; }
  header nav .nav-links{
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(78vw, 360px);
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 10002;                /* ABOVE overlay */
    pointer-events: auto;

    /* COLORS — darker panel so it doesn’t look greyed out */
    background: #1c1e22;           /* dark slate */
    display: flex;
    flex-direction: column;
    padding-top: 80px;             /* space for header */
    overflow-y: auto;
  }
  header nav .nav-links.show{ transform: translateX(0); }

  /* Link styles inside drawer */
  header nav .nav-links a,
  header nav .nav-links .nav-link{
    display:block;
    width:100%;
    padding:16px 20px;
    margin:0 !important;
    color:#ffffff;
    font-size:18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  header nav .nav-links a.active,
  header nav .nav-links a:hover{
    background:#ffaa17; color:#1c1e22; /* your orange + readable text */
  }

  /* “Other” as accordion */
  .nav-item.has-submenu{ position: static; width:100%; }
  .nav-item.has-submenu > .nav-link{
    display:flex; align-items:center; justify-content:space-between;
  }
  .nav-item.has-submenu > .nav-link::after{
    content:"▾"; font-size:14px; opacity:.85; transition: transform .2s;
  }
  .nav-item.has-submenu.open > .nav-link::after{ transform: rotate(180deg); }
  .nav-item.has-submenu .submenu{
    position: static; display:none; background: rgba(255,255,255,.04); padding:6px 0;
    box-shadow:none; border-radius:0;
  }
  .nav-item.has-submenu.open .submenu{ display:block; }
  .nav-item.has-submenu .submenu a{ padding:12px 22px; font-size:16px; color:#fff; border:0; }
  .nav-item.has-submenu .submenu a:hover{ background:#f4f6f8; color:#1c1e22; }

  /* Overlay sits BELOW drawer */
  .mobile-overlay{
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
    z-index: 10001;                 /* BELOW drawer */
    pointer-events: none;           /* don’t block clicks when hidden */
  }
  .mobile-overlay.show{
    opacity: 1; visibility: visible;
    pointer-events: auto;           /* clickable only when visible */
  }

  /* Burger icon visible on mobile */
  #btn-menu{ display:block; font-size:32px; color:#000; cursor:pointer; }
}

/* === FINAL MOBILE DRAWER OVERRIDES (place at end of style (2).css) === */
@media (max-width: 780px){
  header { position: relative; z-index: 900000; }
  header nav { position: relative; z-index: 900001; }
  header nav .nav-links{
    position: fixed; top: 0; right: 0;
    height: 100dvh; width: min(78vw, 360px);
    transform: translateX(100%); transition: transform .28s ease;
    z-index: 900003; pointer-events: auto;
    background: #1c1e22; display: flex; flex-direction: column;
    padding-top: 80px; overflow-y: auto;
  }
  header nav .nav-links.show{ transform: translateX(0); }
  header nav .nav-links a, header nav .nav-links .nav-link{
    display:block; width:100%; padding:16px 20px; margin:0 !important;
    color:#fff; font-size:18px; border-bottom:1px solid rgba(255,255,255,.08);
  }
  header nav .nav-links a.active, header nav .nav-links a:hover{ background:#ffaa17; color:#1c1e22; }
  .nav-item.has-submenu{ position: static; width:100%; }
  .nav-item.has-submenu .submenu{ position: static; display:none; background: rgba(255,255,255,.04); padding:6px 0; }
  .nav-item.has-submenu.open .submenu{ display:block; }
  .mobile-overlay{
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
    z-index: 900002; pointer-events: none;
  }
  .mobile-overlay.show{ opacity: 1; visibility: visible; pointer-events: auto; }
  #btn-menu{ display:block; font-size:32px; color:#000; cursor:pointer; z-index: 900004; }
}
@media (max-width: 780px){
  /* Drawer above overlay */
  header nav .nav-links{ z-index: 9999 !important; }
  /* Overlay below drawer; only clickable when visible */
  body > .mobile-overlay{
    z-index: 9998 !important;
    pointer-events: none;
  }
  body > .mobile-overlay.show{
    pointer-events: auto;
  }
}
/* Keep header fixed on ALL sizes (incl. mobile) */
@media (max-width: 780px){
  header{
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 10001; /* stays above page content */
  }
  /* prevent content jumping under the fixed header */
  body{ padding-top: 80px; }
}

/* Stack News page layout on mobile (photo on top, shorter and squarer) */
@media (max-width: 780px){
  #news-page .news-shell{
    display: flex;
    flex-direction: column;
  }

  #news-page .news-photo{
    position: relative;
    top: auto;
    height: auto;
    width: 100%;
    aspect-ratio: 4 / 3; /* makes it shorter and squarer */
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
  }

  #news-page .news-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* ensures image fills the frame neatly */
  }
}
@media (max-width: 780px){
  /* kill any horizontal scroll / stray gutter */
  html, body { overflow-x: hidden; }

  /* make the content fill the screen evenly */
  .services .contanier{
    width: 94%;
    margin-inline: auto;
  }

  /* tidy spacing so the cards feel centered */
  .services { padding-top: 20px; }            /* room under fixed header */
  .pub-h1   { margin: 0 0 18px; padding: 0 2px; }

  /* ensure each card is full-width on mobile */
  .services .boxs{ display: block; margin: 0; padding: 0; }
  .services .boxs .box{
    width: 100%;
    margin: 0 0 18px;
  }
}